<script type="text/javascript">
$(function () {
	var str = "";
    $("#tab").html("");
    let ts = ["外卖", "酒店"];
	let ns = ["审批中", "未通过", "通过"];
	let imgs = content.find(".image-item._imgs");
	let cs = content.find(".image-item._cs");
    
	$.get(
		"shops/apply.do",
		function(data){
			data.shops.name = ns[data.shops.shopStatus];
			data.shops.shopsTypeName = ts[data.shops.shopTypeId];
			$.each(data, function (i, item) {
                str+="<tr>";
                str+="<td >"+item.shopName+"</td>";
                str+="<td >"+item.shopMemo+"</td>";
                str+="<td >"+item.imgs+"</td>";
                str+="<td ><button type='button' class='btn btn-success btn-xs'>查看	</button></td>";
                str+="</tr>";
            });
            $("#tab").append(str);
		},"json"
	);
});	
	
</script>

<form class="form-horizontal">
	<div class="col-md-12">
		<div class="main-title">
			<div>店 铺 基 本 信 息</div>
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">店铺类型</label>
		<div class="col-sm-4">
			<select name="shopTypeId" class="form-control">
				<option value="0">外卖</option>
				<option value="1">酒店</option>
			</select>
		</div>
		<label class="col-sm-2 control-label">店铺名称</label>
		<div class="col-sm-4">
			<input required="required" type="text" class="form-control" name="shopName" />
		</div>
	</div>
	<div class="form-group">
		<label class="col-sm-2 control-label">店铺说明</label>
		<div class="col-sm-10">
			<textarea name="shopMemo" class="form-control" style="height: 8em;"></textarea>
		</div>
	</div>
	<div class="col-md-12">
		<div class="main-title">
			<div>店 铺 照 片</div>
		</div>
	</div>
	<div class="col-md-12">
		<div class="image-item _imgs">
			<a href="" target="_blank"><img style="max-width: 200px; max-height: 200px;" onerror="this.src='img/_noimg.png'" src="img/_noimg.png" class="img-thumbnail" /></a>
		</div>
	</div>	
</form>